package util;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author 胡海亮  QQ:249782944
 * 学校:中南大学 商学院
 * EnterpriseIMServer :企业即时通讯
 * Apr 28, 2010
 * 
 * 
 */
public class UserData implements Serializable {

	private String userID;            //用户的id号
	
	private String userName;       //用户的用户名
	private String ip;       //用户的ip
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	private boolean isOnline;
	
	public UserData(String userId, String userName,boolean isOnline,String ip) {
		// TODO Auto-generated constructor stub
		this.userID = userId;
		this.userName = userName;
		this.isOnline = isOnline;
		this.ip = ip;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String toString(){
		StringBuffer buffer=new StringBuffer();
		buffer.append("userID:\" "+userID+"\"");
		buffer.append("userName:\" "+userName+"\"");
		return buffer.toString();
	}

	public boolean isOnline() {
		return isOnline;
	}
	public void setOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}
	
}
